﻿using CodeGenerator.DBInfo;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeGenerator.Utils
{
    internal class EnumHelper
    {
        public static DBType ParseDbType(string typeName)
        {
            switch(typeName)
            {
                case"MySQL":
                    return DBType.MySQL;
                case "Oracle":
                    return DBType.Oracle;
                case "PostgreSQL":
                    return DBType.PostgreSQL;
            }
            throw new Exception("不支持的数据库类型");
        }
    }
}
